{% extends "main/index.html" %}

{% load i18n %}
{% block title %}
<title>documento</title>
{% endblock %}
{% block content %}
    <div class="titulo_contenedor">
	View Document
    </div>
    <div class="cuerpo_contenedor">
	{% if ret %}
			<a href="/documents/">{% trans "Not able to be viewed. Click to return." %}</a>
	{% else %}
	    	<div class="doc_details">
				<label>No. Resolucion</label><br/>
				<span class="doc_details">{{ d.numDoc }}</span><br/>
				<label>Estado</label><br/>
				<span class="doc_details">{{ st }}</span><br/>
				<label>Fecha </label><br/>
				<span class="doc_details">{{ d.date }}</span><br/>
				<label>Visto</label><br/>
				<p class="doc_details">{{ d.visto|linebreaks}}</p>
				<label>Considerando</label><br/>
				<p class="doc_details">{{ d.considerando|linebreaks}}</p>
				<label>Resuelve</label><br/>
				<p class="doc_details">{{ d.resuelve|linebreaks}}</p>
				<a href="/documents/search/">{% trans "Go back to the doc search form." %}</a></td>        	
			</div>
			{% ifequal user d.owner %}
			<ul>
                <li><a href="/documents/edit_document/{{d.Get_numDoc}}/">Edit</a></li>
                <li><a href="/documents/send_to_rev/{{d.Get_numDoc}}/">Send to review</a></li>
                <li><a href="/documents/add_colab/{{d.Get_numDoc}}/">Select colaborators</a></li>
            </ul>    
            {% endifequal %}
	{% endif %}
	{% block comments %}{% endblock %}
	</div>
	<div class="fondo_contenedor"> 
	</div>
{% endblock %}	
